package org.tis.tools.abf.module.ac.entity.vo;

import lombok.Data;
import org.tis.tools.abf.module.ac.entity.AcApp;
import org.tis.tools.abf.module.ac.entity.enums.AcAppType;
import org.tis.tools.abf.module.common.entity.enums.YON;

import java.util.Date;
import java.util.List;

/**
 * Created by chenchao
 * Created on 2018/9/27 22:06
 */
@Data
public class AcAppRoleDetail {

    private String guid;
    private String appCode;
    private String appName;
    public AcAppType appType;
    public YON isopen;
    private Date openDate;
    private String url;
    private String ipAddr;
    private String ipPort;
    private String appDesc;
    private List<AcFuncExit> funcList;

    public AcAppRoleDetail(){}

    public AcAppRoleDetail(AcApp acApp, List<AcFuncExit> funcList){
        this.guid = acApp.getGuid();
        this.appCode = acApp.getAppCode();
        this.appName = acApp.getAppName();
        this.appType = acApp.getAppType();
        this.isopen = acApp.getIsopen();
        this.openDate = acApp.getOpenDate();
        this.url = acApp.getUrl();
        this.ipAddr = acApp.getIpAddr();
        this.ipPort = acApp.getIpPort();
        this.appDesc = acApp.getAppDesc();
        this.funcList = funcList;
    }
}
